package com.mjh.mapper;

import com.mjh.annotaion.DataScope;
import com.mjh.bean.Activity;
import com.mjh.model.BaseQuery;
import com.mjh.query.ActivityQueryCondition;
import com.mjh.vo.ActivityVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author ma
* @description 针对表【t_activity(市场活动表)】的数据库操作Mapper
* @createDate 2025-02-18 15:20:11
* @Entity com.mjh.bean.Activity
*/
public interface ActivityMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Activity record);

    int insertSelective(Activity record);

    Activity selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Activity record);

    int updateByPrimaryKey(Activity record);

    @DataScope(tableAlias = "ta",tableField = "owner_id")
    List<ActivityVo> selectList
            (@Param("baseQuery") BaseQuery baseQuery, @Param("activityQueryCondition")
            ActivityQueryCondition activityQueryCondition);

    ActivityVo selectByActivityId(Integer id);

    int deleteActivityBatchByIds(List<Integer> ids);

    ActivityVo selectActivityDetailInfoById(Integer id);

    List<Activity> selectActivityList();
}
